import axiosIns from '@/utils/request';
// 模拟接口 https://hxjsq.morninfo.com/appgl/doc.html#/

export const issuedApi = {
  asideList: (data) => {
    // return axiosIns.post('/bbibmApiDataservice/page', data, {
    //   params: { pageIndex: 1 }
    // });
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            total: 20,
            records: [
              {
                id: 1,
                zt: 1,
                mc: '国庆节广场安保',
                cjr: '张三',
                cjrbm: '科信科',
                kssj: '2021-01-01 00:00:00',
                jssj: '2021-01-08 00:00:00',
                cjsj: '2021-01-01 00:00:00',
                ms: '备注备注备注备注',
              },
              {
                id: 5,
                zt: 1,
                mc: '国庆节广场安保',
                cjr: '张三',
                cjrbm: '科信科',
                kssj: '2021-01-01 00:00:00',
                jssj: '2021-01-08 00:00:00',
                cjsj: '2021-01-01 00:00:00',
                ms: '备注备注备注备注备注备注备注备注备注备注备注',
              },
              {
                id: 4,
                zt: 1,
                mc: '国庆节广场安保',
                cjr: '张三',
                cjrbm: '科信科',
                kssj: '2021-01-01 00:00:00',
                jssj: '2021-01-08 00:00:00',
                cjsj: '2021-01-01 00:00:00',
                ms: '备注备注备注备注备注备注备注',
              },
              {
                id: 3,
                zt: 1,
                mc: '国庆节广场安保',
                cjr: '张三',
                cjrbm: '科信科',
                kssj: '2021-01-01 00:00:00',
                jssj: '2021-01-08 00:00:00',
                cjsj: '2021-01-01 00:00:00',
                ms: '备注备注备注备注备备注备注',
              },
              {
                id: 2,
                zt: 1,
                mc: '国庆节广场安保',
                cjr: '张三',
                cjrbm: '科信科',
                kssj: '2021-01-01 00:00:00',
                jssj: '2021-01-08 00:00:00',
                cjsj: '2021-01-01 00:00:00',
                ms: '备注备注备注备注备注备注备注备注备注备注备注',
              },
            ]
          }
        })
      }, 500)
    })
  },
  asideCount: () => {
    // return axiosIns.get('/bbibmApiDataservice/asideCount')
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            wks: 12,
            jxz: 14,
            ywc: 100
          }
        })
      })
    })
  },
  timeList: (data) => {
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: ['2021-01-01', '2021-01-02', '2021-01-03']
        })
      })
    })
  },
  groupList: (data) => {
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: [
            { mc: 'Q1组', dd: '红旗河沟2号口' },
            { mc: 'Q2组', dd: '大石坝2号口' },
            { mc: 'Q3组', dd: '石门2号口' },
          ]
        })
      })
    })
  },
  tableList: (data) => {
    // return axiosIns.post('/bbibmApiDataservice/page', data, {
    //   params: { pageIndex: 1 }
    // });
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            total: 20,
            records: [
              {
                fzmc: 'Q1组',
                xfdw: '网安支队',
                rs: 5,
                zt: 1,
                xfr: '张三',
                xfsj: '2021-01-01 00:00:00'
              },
              {
                fzmc: 'Q1组',
                xfdw: '网安支队',
                rs: 5,
                zt: 2,
                xfr: '张三',
                xfsj: '2021-01-01 00:00:00'
              },
              {
                fzmc: 'Q1组',
                xfdw: '网安支队',
                rs: 5,
                zt: 1,
                xfr: '张三',
                xfsj: '2021-01-01 00:00:00'
              },
              {
                fzmc: 'Q1组',
                xfdw: '网安支队',
                rs: 5,
                zt: 1,
                xfr: '张三',
                xfsj: '2021-01-01 00:00:00'
              },
              {
                fzmc: 'Q1组',
                xfdw: '网安支队',
                rs: 5,
                zt: 1,
                xfr: '张三',
                xfsj: '2021-01-01 00:00:00'
              },
            ]
          }
        })
      }, 500)
    })
  }
}
